home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / pbaseiv.zip / P4DOS011.TIP < prev    next >
Text File  |  1991-12-16  |  2KB  |  49 lines

  1. Many programs have commands that allow you to "shell out" to
  2. DOS and then return to your work by typing EXIT. The problem
  3. we encountered was that users were forgetting to type EXIT
  4. and loading the program again, thus running out of memory.
  5.  
  6. Some programs, such as WordPerfect 5.1, change the DOS
  7. prompt to remind you to type EXIT; others, like 1-2-3,
  8. don't. If your program's in the latter group, here's a
  9. simple way to add the right instructions. The sample batch
  10. file below changes your prompt, loads 1-2-3, then restores
  11. your original prompt after you exit the spreadsheet. If you
  12. invoke DOS from within 1-2-3, you'll see a two-line prompt:
  13.  
  14. [Enter EXIT to return to 1-2-3]
  15. C:\123>
  16.  
  17. The batch can be modified to load almost any program. (You
  18. can copy the listing to a file by pressing the Alt-F key,
  19. then edit it to suit your needs.)
  20.  
  21. Since the new prompt is stored in the environment and may be
  22. bigger than your original one, make sure you have enough
  23. space to hold it. You may have to add the line
  24. SHELL=C:\COMMAND.COM /E:XXXX /P to your CONFIG.SYS file,
  25. where XXXX is the amount of environment space you want. A
  26. setting of 1024 should be more than sufficient.
  27.  
  28. Douglas J. Nakakihara
  29. Simi Valley, California
  30.  
  31.  
  32. Restoring your prompt
  33.  
  34. ---- BEGIN LISTING ----
  35. @ECHO OFF
  36. ECHO Loading 1-2-3....
  37. SET | FIND "PROMPT=" > C:\OLDPROMP.BAT
  38. PROMPT [Enter EXIT to return to 1-2-3]$_$P$G
  39. 123
  40. CALL C:\OLDPROMP
  41. DEL C:\OLDPROMP.BAT
  42. ---- END LISTING ----
  43.  
  44. Title: Retrieving Your Precious Prompt
  45. Category: DOS
  46. Issue date: Dec 1991
  47. Editor: Brett Glass
  48. Supplementary files: NONE
  49.